package ad.android.service;

import ad.android.exception.ServiceException;
import ad.android.model.Application;

public interface IApplicationService {
	/**
	 * 根据licenseKey查找应用
	 * @param key
	 * @return
	 * @throws ServiceException
	 */
	public Application findApplicationByLicenseKey(String licenseKey)throws ServiceException;
	
	
	/**
	 * 根据licenseKey查找SecKey
	 * @param key
	 * @return
	 * @throws ServiceException
	 */
	public String findSeckeyByLicenseKey(String licenseKey)throws ServiceException;


	/**
	 * 超找licenseKey对应的App的ID
	 * @param licenseKey
	 * @return
	 * @throws ServiceException
	 */
	public Long findApplicationIdByLicenseKey(String licenseKey)throws ServiceException;


	/**
	 * 查找ID为appId的Application对象
	 * @param appId
	 * @return
	 * @throws ServiceException
	 */
	public Application findApplication(Long appId)throws ServiceException;
	
}
